package apiday02homework01;

import com.sun.scenario.effect.impl.sw.sse.SSEBlend_SRC_OUTPeer;

public class ReplaceAllDemo {
    public static void main(String[] args) {
//        String line = "abc123def456ghi78";
//        line = line.replaceAll("[0-9]+","#NUMBER#");
//        System.out.println(line);

//        String line = "abc123def456";
//        line = line.replaceAll("[0-9]+","#NUMBER#");
//        System.out.println(line);

        String line = "abc123def456";
        line = line.replaceAll("[0-9]+","#number#");
        System.out.println(line);
    }
}
